package com.lanyun.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 销售订单实体类
 */
public class SalesOrder {
    private Integer id;//id
    @DateTimeFormat(pattern = "yyyy-MM-dd")//入参
    @JsonFormat(pattern = "yyyy-MM-dd")//出参
    private Date enterDate;//录入日期
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date outDate;//出库日期
    private Admin salesMan;//销售员
    private Admin keeper; //库管员
    private Customer customer;//客户
    private String state;//订单状态：出库、未出库
    private Integer isDel;//是否删除

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Date getEnterDate() {
        return enterDate;
    }

    public void setEnterDate(Date enterDate) {
        this.enterDate = enterDate;
    }

    public Date getOutDate() {
        return outDate;
    }

    public void setOutDate(Date outDate) {
        this.outDate = outDate;
    }

    public Admin getSalesMan() {
        return salesMan;
    }

    public void setSalesMan(Admin salesMan) {
        this.salesMan = salesMan;
    }

    public Admin getKeeper() {
        return keeper;
    }

    public void setKeeper(Admin keeper) {
        this.keeper = keeper;
    }

    public Customer getCustomer() {
        return customer;
    }

    public void setCustomer(Customer customer) {
        this.customer = customer;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public Integer getIsDel() {
        return isDel;
    }

    public void setIsDel(Integer isDel) {
        this.isDel = isDel;
    }

    public SalesOrder(Integer id, Date enterDate, Date outDate, Admin salesMan, Admin keeper, Customer customer, String state,Integer isDel) {
        this.id = id;
        this.enterDate = enterDate;
        this.outDate = outDate;
        this.salesMan = salesMan;
        this.keeper = keeper;
        this.customer = customer;
        this.state = state;
        this.isDel = isDel;
    }

    public SalesOrder() {
    }
}
